lib: ensure that session display count for course homepage is adhered to
(CONTRIB-5093)