Only apply ping4 service to hosts which have an address macro.

Fixes #5891