Fix race in merging

We deleted toIteratorExecution at the same time as adding a new TypedPipe. This fixes the issue.