Fix login then logout error, ns_Publisher is null