Fixing "None type" issue caused by empty workspaces params