Heinz has reported underlying third-quarter earnings that beat Wall Street forecasts, although its sales came in under analyst estimates.