Added check for empty buffer that comes in when the Netty Channel goes inactive.