Fix SWHIndexingLister.db_partition_indices(); ensure partition size is not zero
when this lister is called for the first time, db_num_entries() may return a null value, so the min() will also be zero, making the range() call crash.
Depends on !49 (closed)
Migrated from D940 (view on Phabricator)