mod/taskchain fix glossary filtering on Moodle >= 2.3