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