Fix for if the user cancels the save file dialog.