The snub underscores the challenges Mondelez Chief Executive Irene Rosenfeld faces in wooing Hershey’s controlling shareholder, the Hershey Trust, a $12 billion charity created by the eponymous company’s founder a century ago.