Fixed a bug in URI template match with URI parameter

If the requests has query parameters, the URI template matcher failed