Fixed bug in sum_times when 'history' not present in h5 file