Fixed bug where decryption is attempted on an empty patient record.