Avoid an error of either the start date or the due date is nil. #63957

Forward port of 53f7492076a0fabdecff359cf20fa42045715dd4