`event-valuechange` error when `vcData` is null

This changes the check for `nodeName` to only occur after `vcData` is shown to be non-null.