Rising ingredient costs have prompted confectionery giants such as Hershey to broaden trick-or-treating options to include salty snacks.