Be more defensive when parsing global.json