cron: Fix possible division by zero error