check if a waypoint belongs to a track before deleting it