Handle invalid json on StateHistory.data