GTlsCertificate: fix loading of bad certificate chains