Check for an empty host batch before ping scanning.

This was a regression related to target deferral. It caused a null
pointer dereference if all your targets failed to resolve or were
excluded.