fix inverted test in Model/setSnapshotData() (issue #2466)

To fix issue #2466