Removes last child from inline editor dropdown if it is a divider