[PLAT-3503] Resolve portfolios on view compilation

 This allows the web components to be deployed in a separate VM from the engine
[PLAT-3503] Fix depgraphs when web components and engine are in different VMs

Fixed race condition that could allow a call to be made to a view cycle after its release
[PLAT-3503] Don't create a root depgraph node if the graph is null