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

If a non-existing file is attempted to be loaded with loadSVGFromURL() an error is thrown because xml will be undefined. Added checks to make sure it's defined or exit early if (still) undefined.