CookieJar doesn't properly handle multiple matching cookies with the same name, back port fix for #1732