Don't yield empty value

Without this patch host_iter yields empty hosts.

Change-Id: Ideb832513f67bfc5503f2620994f41f909f6fabc