Don't segfault if a map script continue to exist when the map is closed.