Don't duplicate history entry if the same item is clicked twice.

Bug: 66760
Change-Id: Id78f2fbdc796a1a34c8f6829ca0632b9b4705fbe