uriparserext: fix bug that `last` function may not return.
Merge pull request #39 from mzp/uriparser-fix

uriparserext: fix bug that `last` function may not return.