Filter commentable queries by course_id

Bug: TNL-207