mod/taskchain fix unknown pageid error when duplicating a TaskChain error activity on the course page