BISERVER-4477 Fix stream closed
Merge pull request #870 from pentaho-tband/BI-4477

BISERVER-4477 Fix stream closed