Fix null reference exceptions in MsTest result parsing