httpclient: Fix bug causing seek-by-read-skip to fail if close to EOF

Fixes #2275