Fix bug when enabling mobile themes.
Merge pull request #2231 from vanilla/hotfix/mobile-theme-async

Fixes fatal error when enabling mobile themes.