Fix bug reported at http://edoceo.io/paste?p=FoUHPl

Thanks to @edoceo
Merge branch 'master' of https://github.com/piwik/piwik