fix #2729: crash on GPX export