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

TNL-543

@jimabramson @dan-f Please review
Is there a price to creating a variable that we need to be concerned about? I thought the code was easier to read with the explicit variable name.