Uri::main() fixing has a side effect

I found that Uri::main() amendment #1641 has one side effect.  If form action has an empty string, generated url gets wrong.