tree_heleper: concat html only if present. Avoid nil exception