fixes #3713 thx for the report, is it OK now?

git-svn-id: http://dev.piwik.org/svn/trunk@7794 59fd770c-687e-43c8-a1e3-f5a4ff64c105