Fixing bug as reported in: http://forum.piwik.org/read.php?2,106317