EZP-20467: fixed: check if authentication token is null
EZP-20467: updated: unset token on session delete
EZP-20467: updated: integration with legacy requires is_logged_in cookie