changed typeof check to instanceof

Changed all error checks on turf results to use the conditional
```javascript
(result instanceof Error)
```
instead of
```javascript
(typeof result === 'Error')
```
The latter would always evaluate to false because `typeof new Error()` is always `'object'`, not `'Error'`.