[JENKINS-14585] core side fix for: claim-plugin cannot claim broken tests in maven jobs

This is a core side fix for https://issues.jenkins-ci.org/browse/JENKINS-14585
I've done some testing on the claim-plugin with this fix and it looks fine.
However, it may need some more testing and tweaking on the claim-plugin side.