CSRF token is null or empty in craft 2
For Craft 2, these are the values you're looking for...

window.csrfTokenName = "{{ craft.config.get('csrfTokenName') }}";
window.csrfTokenValue = "{{ craft.request.getCsrfToken }}";


They changed slightly in Craft 3, which can be seen here...