WebUI: Check length of URIs

In some cases, args_ can't be empty. Specify the expected size to
avoid issues.

Fix 2023ec043c03 ("WebUI: Check URI of GET and POST requests")