Added check to make sure xml is defined and exit if undefined.
Merge pull request #1058 from MarcoMiltenburg/20131218-01_xml-undefined

Loading non-existing files with loadSVGFromURL() throws an error