don't fail inside doctest on undefined exceptions

This happens when test forgets `new`:

```javascript
throw SomeError("bla");
// => Error: bla
```