mod/taskchain fix 'undefined ->version' in Moodle 2.4 - 2.5