fix #4505: sporadic crash when trying to navigate to a waypoint