Merge "don't call the reparent method when the old parent of task is removed." into main