SERVER-9502 fix assert code