[#1644] Fixed IndexOutOfBoundException when calling copy() on a empty CompositeByteBuf