Fix Fragment blur handling for Documents

Fixed a bug where calling blur() on a Fragment rendered directly into a Document container would fail. The code now properly handles cases where the parent container is a Document by using a helper function to get the owner document, allowing blur to correctly clear focus.