[fx] web API: generate id when node has no id