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