[NEXUS-6568] Remove obsolete code
[NEXUS-6568] Only add token if tokenName was added to XMLHttpRequest object