Fix hosting_context for previously broken migrated instances.