Fixing nullreference in Update-CMWorkspace