Fixing promise rejection from `data.sync()`

Minor change
Merge pull request #204 from avoidwork/edge

Minor fix