Handle the empty-cert-object case. Close #1.

Fix the cert test to correctly handle the case that the object returned
by req.getPeerCertificate() is an empty object. See
https://github.com/tgies/client-cert-auth/issues/1 for more information.