Check for null startDate / endDate

attempting to fix zipang/tadaaapickr#2