Ensure LMS passes correct group_id when querying content

TNL-23
This could be written more concisely as `if not requested_group_id:`