sc_pkcs15_encode_pubkey_as_spki depends on DER encoded RAW key

Make sure the sc_pkcs15_pubkey structure contains the DER endoding
of the RAW public key before trying to produce the SPKI version.