MDL-42858 Course Management: fix regression for subcategories visibility
MDL-42858 Course Management: Update phpunit test for core_course_management_helper_test