Bug 881991 - Properly detect already inserted sessions; r=rnewman, a=akeybl