Fix extraction of course id in ares_courseuser