Events.js: Check if array exists before loop
Merge pull request #2370 from cusspvz/patch-1

Events.js: Check if array exists before loop