insights: don't error on empty repo in commit indexer
Created by: leonore
closes #37151 (closed)
instead of erroring we mark the repo as successfully last indexed in commit_index_metadata
Test plan
Added unit tests for the new helper and for the function.