Update Test-CertExpirationDate.ps1

Validate if the certificate to expire list is not null before send the mail, if it is, don't send the alert.