authUserId is not defined when user is not logged in.  Add check in setCurrentUserActiveTime() to verify authUserId contains data befor updating the onLineLatActiveTime.