Fix including http:// in proxy URL.
Fix invalid type conversion when getting a proxy url

Issues:
https://github.com/ariya/phantomjs/issues/11117
https://github.com/ariya/phantomjs/issues/10811