Null check for cipher text to prevent NPE on decryption

fixes #1703
// FREEBIE