A.F.....S. [ZBXNEXT-1133] Fix action cloning. Fix discovery check operation adding to action. Fix possible memory leak in check_action_conditions().