Null handling for .Attr()