Fix for processing of Urls in OauthEndpoint ( this was failing when url

do not have any parameters ).