Fix check for presence of ECDSA public key for outgoing connections.