Fixed #19436 -- Don't log warnings in ensure_csrf_cookie.