Fix for urlArgs causing formatUrl to add incorrect identifier

urlArgs as a config options causes req.toUrl to return a url with the urlArgs added to it which causes formatUrl to fail