0 should qualify as a valid id
Better error checking for node resolving