timer cancel bug fixed

added a check to see if the timer exists