Fix null certificate that is not an error
Merge pull request #1830 from hardening/certificate_fix

Fix null certificate that is not an error