Fix crash when reordering explorer/grep tabs