........S. [ZBX-8873] fixed incorrect event being generated after maintenance in case there are out of order events due to proxy

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