test/test.bugsnag: refactor the IE 9 test

The problem with the previous test was that IE8 and lower don't run
it, because of the "addEventListener" check.