Fix for empty timeseries input.