(bug 37643) Ensure a session is created when necessary for Captcha