Not crashing on empty dialogues anymore.