Bug 22483: (QA follow-up) Corrections to logic in check_cookie_auth