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.
Merge pull request #618 from joaoinacio/EZP-21995_restricted_content_http500

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