Fixed a crash where a getting history failure would crash because startDate & endDate were nil.