Fix NPE for https://issues.jenkins-ci.org/browse/JENKINS-16042

Just added a test on the subBuild.getResult() to avoid NullPointerException
And so stop to have failures when the build is ok.

Ok, the real problem seems to be that when a build is success, result is null ...
Perhaps need to add more tests in the getBuilders method when sets the result ?