.......PS. [ZBX-8092] simply rearranged code so that hosts are synced before items