Fix null pointer dereference in Timer::AdjustTimers.

Fixes #5783