Expression::attr method: retrieve an attribute value if the attribute is present,
or a default value if it is not