Fix for null dates.