[FLINK-996] Fix for union replacement

The problem was that the BinaryUnionNodes were only replaced for the first output channel instead for all.