Add workaround for bug in current netty 4.0.0.CR1. Will remove workaround later once it is fixed