kalua: cron.db_generate_statistics: avoid possible devision by zero