Tolerate null channel when writing

Channel can only be null during a write if we are disconnecting as in
order to be able to write the writer must have received a non-null
Channel reference.