test_cmp_ctx: Avoid using empty X509 with i2d