sc_asn1_put_tag: allow to be called with data=NULL