Fix InlineHistory's "marked as a duplicate" detection being too eager

Backported from http://bzr.mozilla.org/bmo/4.2/revision/9091

Bug: 55373
Change-Id: I54ecc20eced83d7d8851769d056c03329c162f62
Merge "Fix InlineHistory's "marked as a duplicate" detection being too eager"