Avoid exception when RefreshFile shouldn't crash if no file is loaded.
Merge pull request #1 from rickbeerendonk/Viewer_Crash

Viewer: Avoid exception/crash when no file is loaded and RefreshFile is called.