BACKLOG-1374 Fixed getting last log event if even if the event for whate...

...ver reason does not end up in the logs