Avoid settings proxy settings when there are no active proxies.

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>