mod/reader add compatability with Moodle 2.7