MDL-31356 enrol_imsenterprise: Fix behaviour with course idnumber