fix #3402: crash on GPX export