fixes CC-12: return error instead of panic when listing invalid template id
Merge pull request #855 from control-center/feature/CC-12

fixes CC-12: return error instead of panic when listing invalid template...