Also default to first window and pane when there is only 1

I implemented similar logic to use the first window and pane when there is only 1 window/pane available