Nullcheck outputstream, fixes client crash if server disconnects