CA-139588: Try to prevent Index was out of range exception by invoking o...

...n the event thread

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>