correct small error in hasQuery() example

Example defines `var uri = URI(...` and then use `u.hasQuery()` after that.  This changes the example to `uri.hasQuery()` to be consistent with the var and the rest of the examples.

resubmitting against master