<section data-name="Topics">

<p>The following top-level topics are available:</p>
<ul>
{{- range (fraglist "")}}
	<li>{{.}}</li>
{{- end}}
</ul>

</section>

<section data-name="SubTopics">

<p>The following sub-topics are available:</p>
<ul>
{{- range (fraglist .)}}
	<li>{{.}}</li>
{{- end}}
</ul>

</section>

<section data-name="NoTopicContent">

<p>no content for topic %q</p>

</section>

<section data-name="Topics">

<p>The following top-level topics are available:</p>
<ul>
{{- range (fraglist "")}}
	<li>{{.}}</li>
{{- end}}
</ul>

</section>

<section data-name="SubTopics">

<p>The following sub-topics are available:</p>
{{- if . }}
<ul>
{{- range (fraglist .)}}
	<li>{{.}}</li>
{{- end}}
</ul>
{{- end}}

</section>

<section data-name="NoTopicContent">

<p>no content for topic %q</p>

</section>

Fix panic when display sub-topic message fragment.
Fix panic when display sub-topic message fragment.

doc command runs fragment without context, so templates must check that
the context is defined first.
