Resolve issue #6097

https://github.com/piwik/piwik/issues/6097