fix the bug of tc_event_timer_run when timer handler is NULL.