Fix an error when the object is not an InstrumentedAttribute. ##