Fixing null pointer exception for CAPTCHA only.