Fix crash caused by NPE by daylight savings time.