x509/x509name.c: fix potential crash in X509_NAME_get_text_by_OBJ.