fix divide by zero for import_items on a zero-length sequence/queryset