Fixed potential null dereference if we fail to get the cert's common name