Avoid exception on logout if site is not set.