fix issue in isClusterKSafe in LeaderAppointer