Fix some bugs when there's no total_count in comments and likes.