Set Content-Length to 0 when no data is present

The Selenium grid hub will throw an exception if it gets a DELETE or
POST (possibly others) with no Content-Length, even if the request has
no data.