See complete report and proposed fix in http://forum.piwik.org/index.php?showtopic=11511
fixed in r2530