Bugfix for index argument sanity checking. When removing a segment, only draws a last-point marker if path contains more than one point.