Handle trailing dashes in dates, and don't attempt to add candidates to the pipeline if their record is invalid.