Avoiding cluster-wide query in case hosts-scoped call did not produce any tasks.

Bugs closed: AURORA-537

Reviewed at https://reviews.apache.org/r/22746/