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