A......... [ZBX-8424] fixed finding last event for triggers