Fixed a crasher in formatting the message for the statistic report.