Manipulation: Make cross-document buildFragment work on Android 2.3

Fixes #14796