Clear state if class $attribute is not set