Theme: Set the theme earlier in page load

Fixes the theme change sometimes seen during app start