overrides/Gtk: Only call init_template when we have a template

Otherwise, we'll get a warning about how we don't have a template.