Bug fix: move "setParameter" for semester only if a semester ID is provided
Use nbComments query builder for class sessions by course