A......... [ZBX-7409] fixed inherited web items being added to incorrect applications when updating a template web scenario

Before the fix:
- When you have a template which is linked to two or more hosts and contains a web scenario without an application, setting an application for the scenario will cause the web items on the hosts to be added to applications from different hosts.

After the fix:
- The items will be added to the correct applications.

git-svn-id: svn://svn.zabbix.com/trunk@43631 f4e7fd02-d210-4e34-a1e0-d4093fb66cc2