SVG parser: handling paths that aren't correctly closed.