Addition of Task fails with Return code 20766 when using Script Functions, MODIFY_TASK and ADD_TASKS and adding the same Task multiple times