Avoid logged CoreException

I saw a lot of logged core exceptions when the dialog was opened that allows to restore files from the local history.
A quick check for file.exists fixed that for me.