Don't call memcpy with empty buffer in IOBuf::copyBuffer().