RESTEASY-1077: fix regression where request URI has trailing slash

This is an ugly and I believe incomplete fix for the issue; or to put
differently, it fixes the immediate issue, but I believe the values of
getPath, etc. computed by Resteasy are all wrong to some extent.