Now quits early on pathfinding if end invalid

If the target end position is not an open space (i.e. the collision grid
is "true" there), we don't attempt to find a path for that unit.