Added a mechanism to trap an exception and handle it ourselves.
RequestURI and the path currently being processed might be different.

This happens for example we are in the Stapler.invoke(req,rsp,root,url).