MDL-44071 fix web service core_course_delete_courses to call fix_course_sortorder after deletion of courses, return warnings if course can not be deleted, update unit tests