Handle toJSON call with missing this.data