I think it may be the DialogueTree::BranchTitle() in the last action of your first event.
That function returns the title of the current branch of the running dialogue. However, because the dialogue hasn’t started, I’m guessing it’s returning nothing (or 0).
You can probably solve it by replacing the function with the actual branch name (in quotes).