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

(cherry picked from commit 719134aa7985c0a697f199fc78e323d04e3a65ad)