Use TRICKLE_TIMER_IS_STOPPED in trickle_timer_stop()