httpc: fix the EOC test in http_client_data_chunked()