Fix nullpointer Exception if stream of Document is null
Fix nullpointer Exception if stream of Document is null

Wyamio/Wyam,adamclifford/Wyam,adamclifford/Wyam,adamclifford/Wyam,adamclifford/Wyam,Wyamio/Wyam,Wyamio/Wyam,adamclifford/Wyam