Fix bug with saving intermediate points of the route into GPX file