Core: getUrl() bugfix related to expired session and constant HTTP_SERVER