MDL-21724 course: fixed handling of returnto=0