window-list: fix brief empty menu showing when closing the context menu.