Fixes #3289 - template listing fails
Merge pull request #32 from mbacovsky/3289_template_list

Fixes #3289 - template listing fails