catch AttributeError when self.view.file_name() is None

Catch error when attempting to open url in a "new" unsaved file.