Fix up onReceivedError() to match change in cordova-android