Fix EZP-21955: Access to restricted content results in error 500

This makes sure to throw a AccessDeniedException (and resulting HTTP 403: Access Denied)
if an UnauthorizedException is thrown in the repository service.