fix #1488: jUrl::getCurrentUrl() should not return the entry point

When the configuration says that entry point is not included
into the url, jUrl::getCurrentUrl() should not return an url
that include the entry point name.
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.