Fixed auto-pathing bug when the original path is discarded entirely, but the first tile in the path is still visited, causing a loop in the new path.