fixed several coverity reported bugs.
Do not try to write over null values
doc update
simplified asn1_find_structure_from_oid() and asn1_expand_any_defined_by().
doc update