LOGMGR-78

Fixing issue in by checking that the outputstream is not null before updating the writer.
https://issues.jboss.org/browse/LOGMGR-78