http: fix bailout for writeHead