Fixed #21969: Fix behaviour of initial_data with migrated apps