Fix for InnerBrowser::submitForm with document-relative paths

Unit test and fix for forms with document-relative paths for action -
issue #1274

This fix relies on the fix for issue #1381 to pass all tests (that issue
causes another test to fail with a fatal error)