Fix search js regexp so that split expression returns only strings.
In WebKit-based engines, when using the previous regexp for splitting, "undefined" elements slipped in, resulting in "this" being the "window" and the rest of the code assuming a string would fail.