Update UriTemplate.java

Fix assert, forgot to pass the parameter that was being checked.