Mondelez International’s latest overture to Hershey underscores the challenges posed by high cocoa prices and penny-pinching consumers, which could make the company more open to a deal.