runtime: Start normal node identifiers at 1, reserve 0 for invalid/no-parent-node

Also improve checking of NodeId validity in Network API