Do not try to encrypt unless the public key of the recipient is present

* Return None when encryption fails, as it is expected in the code