Check for null certificate on validCertificate