Fix bug in ByteBuffer.getAll if the list is empty