fix NPE in genMessage of FailedShardsException

shardFailure can be null