Fixed a bug that threw same error in Application as mentioned in previous commit regarding Template.template_get();