For sandboxed renderer it may not have a node::Environment in the context, using a increasing counter as contextId works for all cases.