Stop extension creation code core dumping.
Stop extension creation code core dumping.

This was caused by no initialising the buffer
to NULL when using the auto allocating version
if i2d.

openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl