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.