Unpredictable cocoa markets have prompted some candy makers to rethink how they're sourcing chocolate.