Add StaticValidator warning when a rule references a missing name.