templates/layout: Refine piwik script inclusion check
Piwik script should only be included in production website but checking
the value of the DJANGO_SETTINGS_MODULE variable is not reliable enough
(swh-web in docker uses Django production settings for instance).