MDL-43799 enrol: use API function to get default course category