fix(ihm): Fix editenumitemswidget.js UI (refs #4716)

Fix editenumitemswidget.js to add new enums to an ampty enum attrribute + fix
various misbehaviour (deletion of items, etc.)