warc: Avoid out-of-scope variable usage