Fix JENKINS-18443

Modified XUnitPublisher.java for verifing all tests and not just the last test.