Fixed isMatchingFieldError to properly handle empty field name

Issue: SPR-11374