Assert that url is a string

Some libraries pass along something stupid for the url argument
in window.onerror causing it to blow up without an `indexOf` method.

No idea why, and I don't care.