When closing a session, don't close the whole window if there are splits
When closing a session, we check if that is the last tab, and make the code close the whole window, but we also need to make sure it's the last view, i.e. no split views.
BUG: 440976 FIXED-IN: 21.12