Fix crash in tab search.