Only load MobileDetect if mobile theme is set.