Fix #23699 -- Flush command initial_data handling


The flush command will not load initial data for migrated apps.
This will align the behavior of the command with its help text.

Same fix as pull request #3404. Got messed up with rebasing and started a new branch.