handle nulls in Event.userid