Workaround for regexp.exec() returning '' for unmatched captures on IE (see #24)