Handle template content for case when $custom_config parameter is undef