Fix: crash when mgmt sends corrupted addtocache packets