Currently, the workspace.clients property doesn't work in declarative scripts because wrong workspace wrapper is used. (cherry picked from commit 29a85e83)