Raise error if the migration to be deleted is not found. Closes #12674

Closes #12674