mod/taskchain add _get_completion_state function required for course/activity completion