mod/taskchain fix restore of task conditions in Moodle1 and Moodle2