Fix for segmentation fault when the settings file doesn't exist.