window: Don't change selection when fold mode changes
When the window style changes from folded mode to non-folded mode, the first chat list item is selected by default regardless of the current state.
Instead of blindly selecting the first item, select the first item only if none is selected when window changes to non-folded mode.