cookie_rewriter: catch CookieError and ignore erroring cookies