Made gui not crash when processing file with no file selected