Avoid screenshot failure if window.piwik object is not available.