LOGMGR-78: fixing issue in by checking that the outputstream is not null before updating the writer.