Issue #3422030: Fix error: Entity queries must explicitly set whether the query should be access checked or not
Closes #3422030