MDL-32592 enrol_imsenterprise: fix error when category not defined

thanks to Henrik Thorn for the fix