Fix for MODCLUSTER-390 (copy the logic from mod_proxy_balancer)