[composer] Fix crash when removing item group