* htdocs/js/onglets.js: avoid broken URLs when required arguments are not
  defined