Fix ref before assignment in webapp/nodes/whoami.

Issue DE106
Now returns 404 instead of 500 for an unknown node_id.