Fix crash in tag panels dialog.