Safely handle undfined attributes during lookup