[Validator] fixed the wrong isAbstract() check against the class (fixed #8589)