Check for nullptr in Packet::size().