Fixes #4971 serving languages from ajax page handler rather than simplecache (which cannot handle languages)