handling case of no workspaces, avoiding npe, fixes #16