[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
Noting #1248

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>