Only set MaxAge in Netty.Cookie if it is greater or equal 0.

Passing  a MaxAge -1 to Chrome will deactivate the cookie.
Send an exception response only if the channel is connected.

We experienced several IOException("Connection reset by peer") within out app, which lead to an exception loop, because trying to send a response via an unconnected channel caused another exception.