Fix UrlParams parsing when URL has no parameters.  Add remove() and isEmpty() methods.

This is a fix for issue #6008.  It also adds remove() and isEmpty() methods to the UrlParams module.