Fix EZP-21870: Fatal error when deleting location with limited content/remove permissions

This PR resolves issue https://jira.ez.no/browse/EZP-21870

Instantiation of LogicalAnd Criterion is fixed and integration test is implemented.

This depends on the fix in #591 and includes complete fix from there.
When #591 is merged this PR will be rebased.