mod_base: fix for subdomain polling loop.

(cherry picked from commit bcd55efe10486454ce433feb91dfa467edb41bc7)