Fix regression with dynamic attributes (#1022)
Fix a regression introduced in commit 0acf4913.
This regression was preventing in some use cases the removal of some dynamic attributes and exceptions like the following were thrown:
DevFailed[
DevError[
desc = Device --> a/b/c
Property writable_attr_name for attribute attr1 is set to Attr1, but this attribute does not exist
origin = void Tango::MultiAttribute::check_associated(long int, const string&) at (/home/conda/feedstock_root/build_artifacts/cpptango_1667919173430/work/cppapi/server/multiattribute.cpp:570)
reason = API_AttrOptProp
severity = ERR]
DevError[
desc = Attribute Attr1 is not defined as attribute for your device.
Can't remove it
origin = void Tango::DeviceImpl::remove_attribute(const string&, bool, bool) at (/home/conda/feedstock_root/build_artifacts/cpptango_1667919173430/work/cppapi/server/device.cpp:3784)
reason = API_AttrNotFound
severity = ERR]
]