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