HOPKINS: Fix erroneous check in pathfinding