ensure this.workerClass exists before instanceof check
ensure this.workerClass exists before instanceof check

This avoids an error I was running into in a node environment:

```
TypeError: Right-hand side of 'instanceof' is not an object
```

LLK/scratch-vm,LLK/scratch-vm,LLK/scratch-vm