SERVER-12438 avoid unindexed sort if batch size is set