fixed bug trying to access theme slug when theme isnt being generated