Fix crash when splitting regions in internal edit mode.