SERVER-13635: Remove various bugs in IndexEntryComparison causing server...

... crash when performing index comparisons