Fix hanging when jasmine.JUnitXmlReporter multiple nested spec