[#1852] Fix bug in UnpooledDirectByteBuf.nioBuffer(...) implementation