dispatcher: fix possible bogus gateways

In case the domain name can not be resolved, the destination should
be droped and the number of destinations within the set should not be
increased.

(cherry picked from commit 310dafa013b1f127c9cf60b4f7a5efac639b1aed)

Conflicts:
	modules/dispatcher/dispatch.c