MDL-52916 cbe: Fix group handling for user_competency_in_course page, and competency breakdown report