It looks like you’re using a custom node and not the out of the box Document.Current, which returns a different object type / different wrapper.
This thread goes into it a little bit more and shows you how to convert between the two with Rhythm nodes.