Sync OpenBSD patchset 1135:
Sync OpenBSD patchset 1135:

Do not crash when the current session has no window, fixes a bug
reported by Giorgio Lando. Fix from Thomas Adam.


klaxalk/tmux,klaxalk/tmux,klaxalk/tmux,klaxalk/tmux,klaxalk/tmux