Fix bug with activity update eventsWe incorrectly overwrite the activities cachebefore checking the old activities (commit: 53320fe)