Replace the UE with the task as soon as the task is constructed. This allows Script tasks to work in most cases- and any other task that requires Task in the tree. It is the current behavior - but I think it is not the best solution.