Add safety check to schedule translator and TimeSeries

The original schedule translator did not check to make sure that
there was data in the time series before translating it and most
of the TimeSeries constructors would not work with zero-length
input vectors. Fixed both situations.