Another attempt to fix the indexoutside of array exception that started showing up after moving to threaded.
Added a rather dirty try_catch to the event dispatchers that reports the error on console.