The grammar is okay. With the first one, it would be a bit more natural - since the person only wants cream and NOT sugar - to say something like "good thing!" (good thing you want only cream and not sugar.
M: Oops! That's good. Because I forgot that out of sugar anyway!
With the second, again, the grammar is okay, but it's not very natural business chat.