Don't output anything if outputstream is null