Don't throw unhandled exception when access denied
Merge branch 'master' into xmlrepository