fixed bug in split_timeseries which caused crash when no splitting of the input series was required.