fixes #4655
Merge pull request #4868 from dotCMS/issue-4655-required-warning-not-working-for-key-value-fields

fixes #4655