Fix errors on login screen when tracking module is included and the URL is a doclib URL