extendedcommands: Fix the order of defines for ITEM_APPLY_UPDATE