Fix publishing in old mongo

Fix for STUD-811.

Deleted units weren't being deleted upon publication.

Can @chrisndodge plus one of @cahrens @singingwolfboy please review (or delegate)? CAT-1 bug