AI-836: Fixed additional NPE in field validation related to non-visible fields.