On a javascript error in the test-runner hide the test results as they are unreliable.

addEventListner('error' is totally different to window.onError in Firefox :(
Continue on posting invalid JSON.
Merge pull request #404 from mithro/testrunning-js-errors-fix

On a javascript error in the test-runner hide the test results as they are unreliable.