https_proxy: Check for invalid scheme at startup.

Refactor error handling to use common print function.