Fix error when no results from regexp search