[JENKINS-20499] Don't fail horribly with null causes
Merge pull request #1248 from daniel-beck/JENKINS-20499

[JENKINS-20499] Don't fail horribly with null causes