Fix issue with appending an empty document fragment.