CE-311 stats DB shouldn't be used without checking wgStatsDBEnabled extension
Merge branch 'CE-311-fix-no-stats-on-internal' into dev