[TREELIST] treelist_expand_item: Reuse the variable 'expanded' instead of re-evaluating the expression.