Can you change the second "Browser log" to make it different from the first? Say, Browser Log "Event #2:" & Nametag.data & "-" & LayoutName
This way you'll see in the log if it really fires.
It is possible that the data contains an extra space or line break or some other invisible character. Try wrapping it in trim()
If nothing helps, please post your project file.
Edit: I just realized you are using log variable, not Browser Log action.