Prevent exception when a template is deleted
Optimized getting default value of an enum type
Merge pull request #6 from RalfvandenBurg/develop

Prevent exception when a template is deleted