Problem with $$SearchTemplateDefault and subforms

My $$SearchTemplateDefault form uses two subforms, one at the top and one at the bottom of the form.

The subforms don’t seem to be included for the first and last page of any search results. All pages in between are fine.

If I remove the subforms and paste in the text within each subform into the form then the form works just fine. I searched here and tech notes for the issue but found nothing. Has anyone else observed this issue?