fixes #5506
Merge pull request #5532 from dotCMS/issue-5506-error-using-captcha-in-submit-content

fixes #5506