Refs #6906 and https://github.com/piwik/piwik-package/issues/18
prevent notice when returned array does not have a timezone
Trim the URLs to prevent extra space from causing issue