MDL-31830 course management: fixed bug with toggling of create sub categories button