Fixed bug that caused crash if no file is loaded and a get file_contents is called