Re-apply fix for failing CordovaError test (#93)