Fix condition for adding events to m_Events so none get lost.
Fix condition for adding events to m_Events so none get lost.

* This whole bit of code needs a rethink.

Yours3lf/renderdoc,moradin/renderdoc,cgmb/renderdoc,TurtleRockStudios/renderdoc_public,Zorro666/renderdoc,Anteru/renderdoc,cgmb/renderdoc,etnlGD/renderdoc,Anteru/renderdoc,TurtleRockStudios/renderdoc_public,Anteru/renderdoc,googlestadia/renderdoc,moradin/renderdoc,victor-moya/renderdoc,michaelrgb/renderdoc,Anteru/renderdoc,etnlGD/renderdoc,adrianbu/renderdoc,TurtleRockStudios/renderdoc_public,michaelrgb/renderdoc,Velro/renderdoc,Zorro666/renderdoc,adrianbu/renderdoc,Velro/renderdoc,moradin/renderdoc,victor-moya/renderdoc,TurtleRockStudios/renderdoc_public,Zorro666/renderdoc,etnlGD/renderdoc,Yours3lf/renderdoc,Velro/renderdoc,baldurk/renderdoc,baldurk/renderdoc,Anteru/renderdoc,googlestadia/renderdoc,cgmb/renderdoc,adrianbu/renderdoc,Lssikkes/renderdoc,cgmb/renderdoc,TurtleRockStudios/renderdoc_public,moradin/renderdoc,Zorro666/renderdoc,michaelrgb/renderdoc,googlestadia/renderdoc,victor-moya/renderdoc,michaelrgb/renderdoc,Zorro666/renderdoc,etnlGD/renderdoc,victor-moya/renderdoc,baldurk/renderdoc,moradin/renderdoc,adrianbu/renderdoc,Velro/renderdoc,googlestadia/renderdoc,Lssikkes/renderdoc,Anteru/renderdoc,baldurk/renderdoc,baldurk/renderdoc,Yours3lf/renderdoc,Zorro666/renderdoc,moradin/renderdoc,etnlGD/renderdoc,michaelrgb/renderdoc,adrianbu/renderdoc,Lssikkes/renderdoc,googlestadia/renderdoc,Lssikkes/renderdoc,Lssikkes/renderdoc,etnlGD/renderdoc,TurtleRockStudios/renderdoc_public,adrianbu/renderdoc,Yours3lf/renderdoc,victor-moya/renderdoc,Lssikkes/renderdoc,Yours3lf/renderdoc,Velro/renderdoc,googlestadia/renderdoc,Anteru/renderdoc,victor-moya/renderdoc,Yours3lf/renderdoc,baldurk/renderdoc,Velro/renderdoc,cgmb/renderdoc