Ensure LMS passes correct group_id when querying content

TNL-23
The comment mentions AJAX but actually pertains to non-AJAX requests. The reason I put it where I did originally is that the initial thread query (immediately below where the comment was before) retrieves responses regardless of whether the request is AJAX. In the case of a non-AJAX request, those responses are then completely ignored, and a subsequent AJAX request is made to retrieve the responses.