src/web-client/html-form.php: Replace some uses of Exception with more appropriate InvalidArgumentException (in these instances).