fix #322: Invalid regex search error is not caught by interface