Fixed a error in statistics collector if response data is empty.