Make sure there is a dead pipe available.

Without this fix it's impossible to get past 13th pipe.

Is a rather dirty hack but I'd argue it fits the spirit of whole code. ;)