Fix regression in piwikApi angularjs object refactor and provide backwards compatibility for change.