Use group_id if present when getting user thread and comment counts.

TNL-543