WebUI: Check size of URIs

In some cases, args_ can't be empty. Specify the size of the expected string.

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