Fixed iter's is_empty to use is_none() and added relevant test flag
auto merge of #11788 : salemtalha/rust/master, r=huonw

Fixes #11785.