fixed a crash when saving a city that's not fully loaded