Check type before accessing 'name' property. The passed object doesn't have to be always ClientObject
Yet further fixes related to (async) tree restoration (tested with the Watch panel)