Refined channel.takeN(n) to stop when a null is encountered.