FIX: all data-action buttons were getting removed when LI had no children (e.g. data-action="remove" button).  Fixed so that only data-action="expand|collapse" are removed based on child-count.