Should resolve #422

Moved the addition of the start and end times of a time series after the check for values, so that it doesn't interfere with the check and cause invalid points.