Avoid writing `null` client root.
Added protection to prevent a null client root value being written during polling. The client root is not set during polling as the workspace could be polled from another node.
Change also prevents updates to Static workspaces.