MDL-46427: Fix display for hidden courses in user profile