templates/layout: Refine piwik script inclusion test
Piwik script should only be included in production website but testing
on the value of the DJANGO_SETTINGS_MODULE
variable is not reliable
enough (swh-web in docker uses Django production settings for instance).
Migrated from D6213 (view on Phabricator)