Defending against undefined attribute types