Fix crash after closing the last tab
3.2.2