Better handle Path#moveTo() / #closePath() edge cases in SVG data.

Relates to issue #413