Fix fatal error thrown while trying to throw an exception
Merge pull request #3 from lightster/issue2_template_fatal_error

Fix fatal error thrown while trying to throw an exception