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

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