Reset the template global after listing folder content in activity stream

sharing folders in activity stream was problematic if more than one folder was displayed. The other folders were all listing files from the first folder.

Fixes #1