[fixed] Authentication listeners now check any present token before clearing it in case of authentication failure