SearchContext: stop search on regex matching error