Goto MAI: fix bug causing errors for unreachable goal hexes

This includes hexes occupied by an enemy unit.