Fixes NPE in node manager for one branch of cache population.

o Breaks out relationship loading into its own class, widdling off 60 LOC from NodeManager.
o Adds a test and fix to highlight NPE issue caught in robustness tests.