onerror: check existence of error

so you can pass `.onerror` to node-style callbacks.

```js
function* () {
  doSomethingAsync(this.onerror.bind(this))
  yield next
})
```

another option is to make sure it's `instanceof Error`