fix divide by zero if the clock is changed to 0 at run time (we already cope with it being 0 at startup). (nw)