Fix several problems related to error messages, including an attempt to print a null string pointer.
Fix several problems related to error messages, including an attempt to
print a null string pointer.

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