Cope better with searches for bad queries.