fixes #4639
Merge pull request #5456 from dotCMS/issue-4639-unique-constraint-field-validation-error

fixes #4639