Fix crash when saving api_client_authorization during migration.