I was able to get my template to work by using with
to change the evaluation context:
{{#with items}}
{{#if count}}
{{#each this}}
- {{itemContents}}
{{/each}}
{{else}}
- There are no items in this list.
{{/if}}
{{/with}}
Notice the modified expressions {{#if count}}
and {{#each this}}
.