Fixed issue #532: JUnitFormatter does not throw exception in done() method.

Just a little change I made while writing TestNGFormatter :)
It does not break any tests.