SERVER-13675 do not cache plans if there is a tie

(backport of 7dcbdc440a56fef19a561f513d8eddd1c2a2b27f)