[lib] Remove error type coercion previously required by cordova-cli.