Added a fallback for template to use the default template. it's usefull for modules that are used on a website that doesn't use the default template