Fix numerous bugs in CERT_GetNickName.  Fix bug 45247.
Fix numerous bugs in CERT_GetNickName.  Fix bug 45247.

ekr/nss-old,nmav/nss,ekr/nss-old,nmav/nss,nmav/nss,ekr/nss-old,ekr/nss-old,nmav/nss,ekr/nss-old,nmav/nss,ekr/nss-old,nmav/nss,nmav/nss,ekr/nss-old