fix: avoid StopIteration in bulk_upsert in solr_doc_manager.py