Avoid infinite loop in MultiRegionHighlighter when regexes generate empty matches