do not send out warning mails if the cert has expired already

Avoid sending mail for already expired hosts.