Fixed Pathfinding NullReference issue.