MOBILE-560 Avoid to display errors generated by cordova.js