Replaced `IllegalArgumentException` with `Error`

There is no `IllegalArgumentException` in JS, and I doubt a `ReferenceError` is expected here.

I encountered this while trying to get [andreasmadsen/htmlparser-benchmark](https://github.com/andreasmadsen/htmlparser-benchmark) running with the latest html5 version. Do you have any suggestions for running this module with a minimal configuration?