A......... [ZBX-8194] fixed saving applications for templated web scenarios and resolved undefined indexes