Update resource getnodes processor to fix #11784

Add a conditional statement to prevent the default .tree-folder icon class from overriding template specific icon classes.