Cordova: Don't print stack trace unnecessarily