libvirt: fix resolution of hypervisors when include or exclude are defined

before this, if include or exclude properties where present, as they were generators they would be exhausted in the function weighted_random_choice and hence that function would fail.