add code to handle the case of testResult.getName() == null which causes
bug in commit '4270458a9e2c083c13215bb2993e0c7f3962115a'