Fix 2 dead local stores

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Fix an 'unused' warning

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Add asserts

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
URLInputValidator: restructure code to avoid warnings

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>