Fixed an issue when the template and the theme are the same, like if no child theme is being used
I don't know why people would not use a child theme??