fixed undefined id bug when worker does not have any events or user has completed all events
fixed undefined id bug when worker does not have any events or user has completed all events

StanfordHCI/foundry,StanfordHCI/foundry,StanfordHCI/foundry