SERVER-14302 SERVER-14304 Fix IDHackRunner's use of sharding filter

(backport of 6fe6dee814326ac41f8d626c26bf32763ce73d71)
(cherry picked from commit 3d19c459fe80fb7aa3244174b61994f13f71c21f)