Fix onObjectAndPropertiesSetted

Fix onObjectAndPropertiesSetted to accommodate objects with properties with objects already setted.