Don't store the old file if exception
Don't store the old file if exception

If an exception occurred in the upgrade system, the old file is left intact.

Contributes to issue CURA-844.

onitake/Uranium,onitake/Uranium