Fix leak in setting certificate chain patch Android has a custom certificate chain patch that didn't check whether the cert_chain was already set when setting the new chain. This results in a leak of all the X509 instances in the stack of certificates. Bug: 10610037 Change-Id: I62433671ef18b06cafa5ec18e7b2e6190ce4504d