Fix course badges page access when course badges are disabled