Don't query the clock and update the libevent timer event when no timers are pending.

See #721.