Fixed YTree item selection during items population,

old implementation ignored selected items.