net/http: don't write out invalid cookie lines

Fixes issue 3033

R=golang-dev, fvbommel, rsc
CC=golang-dev
https://codereview.appspot.com/12204043