Do not attempt to evaluate uri variables that are not in the URL

Please refer to https://jira.springsource.org/browse/INT-3054