only filter on target clouds when there is some
only filter on target clouds when there is some

This should avoid a warning from sqlalchemy regarding use of
an empty sequence with the IN-predicate.

hep-gc/cloudscheduler,hep-gc/cloudscheduler,hep-gc/cloudscheduler,hep-gc/cloudscheduler