If MovePage::move() has an exception during a database operation it fails to move the file back to the original location. Since the database operations are wrapped in a transaction the file move can be moved down to trigger the transaction to rollback if the file fails to move.
See also: T153565