Fix crash RuntimeException "No matching key found for the ciphertext in the stream"