MDL-69758 Web services: core_get_course_contents PHP warnings