httpc: add checking for NULL scheme and host