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

Giving arguments to the AccessDeniedException leads to side effects and an error 500 being sent.
Merge pull request #628 from ezsystems/ezp-21955-send403_master

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