workspacesView: Update visibility after updating workspaces
When the number of workspaces changes, it is possible that one of the visible (non-active) workspaces is removed, and another invisible workspace moves in its place.
Make sure that workspaces are shown as necessary in this case.
Fixes #6519 (closed)