Fix crash on loading GPX with no tracks.