Corrected detection of TestResult Failures/Errors for xml writing

Correct previous change - TestResult.Value is contained in the call to testEvent.result not testEvent.detail.