Fix potential disaster of recursively decrypting undefined and throwing