Fix legacy map importer NRE. Closes #4366