Incorrect behavior of empty arc and elliptical arc

When we cannot find a point of intersection for a curve we add empty segments to records. With arc and elliptical arc it will not work because we do not cover this cases inside. Especially in case with elliptical arc it crashes the code.

Edited by Roman Telezhynskyi