Fix error when parsing empty SVG document.

And don't forget to call the callback.
Merge pull request #1335 from rodovich/empty-svg

Fix error when parsing empty SVG document.