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.
Merge pull request #136 from tingletech/patch-1

fixing documentation - correct small error in hasQuery() example