Fix #38: OOME when using SearchEngine.find() and looking for regexes possibly matching empty strings, such as 'foo|'