Fixed bug where cancelling on save-as crashed the application.

That's it. A tiny pull request to prevent the app from crashing when you cancel the save-as dialog.
First one as well on my part, so I hope I'm not messing this up. :)

regards,
nj