Fix init_registry_data for subkeyless top-level keys.