workspace: automatically remove only last empty workspace
From a user point of view I believe that removing empty workspaces when they are in the middle of the list is unexpected. The empty workspace can be a temporary state when the user is simply rearranging some windows and so removing the workspace can be undesired if not annoying.
Removing empty workspaces at the end of the list is instead more expected and likely desirable.