Fix a crash triggered by killed window in a layout