Fixes #32645 Trailing hyphen is removed in JHTML::_('select.options')