folder_tree_render_icon: Readability cleanup.

Makes the logic easier to debug too.