Hopefully fixed null pointer exceptions occurring in cases where there are
data files on disk but no datasets have been loaded, and also in
MetricData.getPaddedDayData when the dataSet end time slightly exceeds 86400 secs.