Add a type-check for a stream in with-html-output.

Avoids confusion caused in Issue #14.
Merge pull request #15 from stassats/master

Add a type-check for a stream in with-html-output.