Fixing error if default_template does not exist
Minor format code.