Fixes #1770
Merge pull request #1772 from pveentjer/fix/maintenance-3.x/1770-loading-of-mapstore-for-statistics

Fixes #1770