MDL-46525 enrol_cohort: fix JS error