MDL-69378 tool_uploadcourse: fix enrolment methods uploads