better fix for missing ad_active_slaves..tested on a server which doesn't have
ad_active_slaves defined.