If template is a doc fragment, get its first child
If template is a doc fragment, get its first child

If the caller passed in a document fragment for a template, we need to
grab the first child (litelist templates must have a single top level
parent) so that we can position it later.

davidcl64/litelist