Catch 404 exception when user is not in Alfresco.