Ensure the stream position is correct before retrying a streaming REST request