Only delete diffs if there are conditions
Only delete diffs if there are conditions

This bug caused all diffs in a live db to be deleted. Luckily there was a backup.

dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq