fix issue 10772 std.regex.splitter generates spurious empty elements