Only parse URLs when they contain ://

Parsing incomplete URLs fails in PHP5.2.
Merge branch 'fix-formhelper'

Fix failing tests on PHP5.2.x