text ematch: check for NULL pointer before destroying textsearch config