MODE-1963 Fixed the code that was un-registering node types: previously only the nodes were deleted from the cache, but the parent references were not updated.