Gracefully handle nil attributes