Fixed upload chunk handling of zero-length buffers.

git-svn-id: http://gtm-http-fetcher.googlecode.com/svn/trunk@128 b3aa69f0-f65c-a609-0a27-78855af037c1