Fixed a bug if the current view hasn't been saved yet

As in, if you make a new file with Ctrl-N, and try to use the plugin before it's saved