Fix NoSuchElementException raised by ChannelInitializer