Use Horde_History modseq to find the latest entry of an object.
This gets rid of the "delete" heuristic detection, too.

Note: The minimum supported Horde_History version is 2.1.0.