Don't try to reload a file if no file is selected (prevents crash)