Issue #888 - Node's owner document should never be None.

I'm not happy about `is_in_doc`, but that should improve once @jdm lands his document-as-node changes.