use new method introduced in Piwik 2.0.4-b5 and removed unused method