Krispy Kreme said the hack will probably hurt its bottom line because of a loss of revenue from the disruption to online ordering, paying for cybersecurity experts and the cost to restore its systems.