determine active theme when rendering error page