Fixed weird interaction behaviour during drawing PlanarPolygons and Paths
Added a check if a new point is added. Now if the figure was already finished
the insertion index is calculated since a new point was added afterwards.
Otherwise the points will simply be appended