Fixed occasional bad geometry relay.

This happens when for instance all documents of the same geometry are deleted,
i.e. the geometry source document and all clones.