This line throws an error whenever AStar returns a null path