Get public exponent from public key, if private key doesn't contain it.