Fixed bug in eventWrapper.js and users.js, handling empty arrays in update