Workspace null check before setActiveWorkspace