Manipulation: Make cross-document buildFragment work on Android 2.3

Fixes #14796
Closes gh-1514