[BUGFIX] Modify queries in persistence only when Security Context is available
The Security context is only available as soon as the Request is built; so it
is not available f.e. in Routing. Thus, one needs to be aware that access
checks are only done as soon as the MVC layer starts, and not before.
For TYPO3, this does not impose a security risk as the PropertyMapper then
takes the strings from the routing and rebuilds the object, this time with
proper permission checking.