Node will be null if this is called on a detached node (i.e., a node that has no parent). Not sure if the usecase is expected, but that is a valid (well, not explicitly disallowed) scenario when the returned node might be null.