Sounds good to me, at least in theory. I think I'd be most worried about contamination from the dehumidifier itself. More so than contaminants from the air (the condensed water vapor should be perfectly pure - purfumes and other volatiles won't condense with it).
My dehumidifier is sometimes used in the basement so it's coils and fan are pretty dusty. If yours has always been used in clean areas then maybe that's not a problem.
If the coils are aluminum, you may get some aluminum oxide in the water, which probably wouldn't be such a problem. If your coils are copper, or tinned copper, I'd be much more wary. I know mine are silver colored, but I haven't looked closely enough to tell if they're stainless (I doubt it), aluminum, or tinned copper.