Merge branch 'MDL-62387-39' of https://github.com/paulholden/moodle into MOODLE_39_STABLE