MDL-46539 assign calendar: Fix lastcron value for assign cron