Correct HashMap bug and add null check.

* SpatialHierarchyPartitioner would rewrite the 2nd level of hashing when a new
node was added
* Disallow null return when a destination node isn't found.