Report all fires of window.onerror.

Additionally, mark the test as having results so that it
won't be ran again. The reported URL is simplified if possible.

## TODO
 - [x] Continue to run tests even if agentError occurs.
 - [x] Investigate why `test.location` does not always work.