Sequentially number history events and handle users with no email