Make sure OutputStream instances are configured with and explicit Output option
As discussed in #262 (closed), OutputStream instances must be correctly configured with an output file to write. This adds a check to make sure it is the case.
Closes #262 (closed)