Fix issue with document fragments.
Merge pull request #1682 from wprl/master

Fix issue with document fragments. Closes #1681.