fix a crash when gui-config.json is missing.