fix #2639: NPE in GPX parser