MDL-41092 assign: Fix duplicate key error in assign cron