fix json.parse error, when encryptedData is null