Modify KC script to deal with nil closed_date's