When an empty Object State Group is present in the system the indexing does not index any Content (when using Solr) or fails with an error (Elastic).
Configure ElasticSearch or Solr
Steps to reproduce:
1. Login as admin
2. Go to Admin -> Object States
3. Create a new Object State Group with name Test and identifier Test
4. Run php bin/console ezplatform:reindex
Indexing works as expected - Content Items are indexed
Error is thrown:
No error is thrown, but no items are indexed.