Fix: stop emitting mochaTest.done event on error

Moved the mochaTest.done event into the block where everything is OK;
previously when Mocha/Node anything went bang you got the Done event.