Ticket 49354 - fix regression in totinit due to mistake in range fetch
Bug Description: I accidentally broke range fetch with idl
parent sorting as:
* In the basecase, we created idl which meant the root object
was not being added.
* I removed a loop that was needed to continue to populate
the elements from leftovers
* The "in idl" test was checking ==0 when it should be !=
Fix Description: Put the loop back, check the count rather than
the idl alloc, and fix the test condition.
https://pagure.io/389-ds-base/issue/49354
Author: wibrown
Review by: mreynolds
Signed-off-by: Mark Reynolds <mreynolds@redhat.com>