fixes CRM-12003, valid email address issue.
fixes #12661, Email failed when contact have 2 same email, and others have no email.