Fixed problems with sending data when user triggers more than max events.
Now immediately after getting the last event
we copy our user actions for sending,
then we clear the userActions array.