ticket #1504: menulist should take care about emptyitem

As listbox, when emptyitem is null the empty option should not be generated,
except in the case where the selection in the menulist is not required.