Fixed using memcpy on a null pointer when Packet has 0 size.