issue #19295: treat invalid cookie as a failed request and not an error