Check to ensure that writeStream exists before writing.
Fixes #62
Merge pull request #63 from adobe-photoshop/jrb/issue-62

Check to ensure that writeStream exists before writing