Don't update nodes in the event handlers if the nodes don't exist yet.

This was caused by commit bf13b412 that calls the handler when created
to get extra text printed out.