Change how we sanity-check _publishNewResults

The old version was just checking that docs *matched*, but we want the
stronger result that docs are *published*.
Refactor an assertion in _removePublished