Pathfinding: fix no-path anomaly.