Fix bug: KeyLocator::getKeyOrCertificate should return a reference.