requested to merge issue/drupal-3179199:3179199-3132022-content-moderation-workspaces-query into 11.x
When publishing a workspace, content moderation should check for content not in a published workflow state. However:
- Don't execute query if there are no workflows with default revisions, which causes a fatal sql error.
- Query for default revision IDs for the entity type in the tracking table. So revisions IDs from other entity types do not prevent publication.