Fix bugs in http sync.

* Server returns 444 instead of 404 when repo is deleted.
* Client handles empty response for check protocol version.