Don't crash on xml parser errors or malformed gpx files

Had some problems with my node server crashing when users uploaded incompatible gpx-files. This will fix it.