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