Make Split() function work consistently with empty strings

Split() would return an array of one string if the original string
had no delimters. However in case the input is an empty string, the
result will be a vector with zero elements, even if purge_empty_strings
is set to false.

Change-Id: If0cd2cd07d21b89c647d6d5b2985796cc78370af
Reviewed-on: https://weave-review.googlesource.com/1765
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2 files changed