Nestle relied on perky coffee and pet food sales to salvage a weak quarter