Map::GetNextTrap: don't look outside the valid range