A......... [ZBX-7981] fixed undefined indexes in maintenance.create and optimized maintenance.update