AFAICT this was not a stream leak to begin with, since the wrapper was based on a `NullOutputStream`. But maybe @kohsuke can explain this odd code.