prevent ```Undefined variable: captchaObjectType```

If you disable the captcha, you get when creating a commentary the error message: Undefined variable: captchaObjectType on line 610 and 614. This pull request fixes the bug.