SERVER-10033: fix typo in disable logic