Fix moving the last tab to another window to merge them back

Authored by tcanabrava on Apr 16 2020, 4:06 PM.