SERVER-13205 fix merging of special leaf nodes in access planner