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.
Merge pull request #1375 from jakewins/relloading-npe

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