BIO_new_from_core_bio: Check for NULL pointer after calling get_globals