Update scheduler.py

start index may be not exist when chain first join or rejoin in mine