Fix incorrect assertion that caused panic when periodic-only timers used.