Fix taking the center of a freeform map potentially resulting in NPEs.