Hershey says it's benefiting from the growing use of GLP-1 weight-loss drugs even as people cut down on snacks. Here's why.