Backport Fix #1171: Split: Sometimes remove leading empty match

The conditions were determined experimentally since the JavaDoc is
note precise enough.

(cherry picked from commit cba58ff2c58ce916ebd4df942612f8538ea6bb70)