The coffee company reported falling revenue and profits, but it performed better than analysts expected.