Avoid error when SVG path data does not contain any 'm' commands.

Fixes #529