catch XHR exception in cordova_plugins.json loading code