diff --git a/plugins/Live/API.php b/plugins/Live/API.php
index 1a3913b1ea655b46e2087b7e7b81ed44fd56f6b3..ebc8481d74721cdcdbf22fde6cc4671d34b1b818 100644
--- a/plugins/Live/API.php
+++ b/plugins/Live/API.php
@@ -541,7 +541,7 @@ class API extends \Piwik\Plugin\API
             /** @var DataTable $table */
             $actionsLimit = (int)Config::getInstance()->General['visitor_log_maximum_actions_per_visit'];
 
-            $website       = new Site($idSite);
+            $website    = new Site($idSite);
             $timezone   = $website->getTimezone();
             $currencies = APISitesManager::getInstance()->getCurrencySymbols();
 
@@ -551,6 +551,9 @@ class API extends \Piwik\Plugin\API
                 $visitor = new Visitor($visitorDetailsArray);
                 $visitorDetailsArray = $visitor->getAllVisitorDetails();
 
+                if(!is_object($website)) {
+                    var_dump($website);
+                }
                 $visitorDetailsArray['siteCurrency'] = $website->getCurrency();
                 $visitorDetailsArray['siteCurrencySymbol'] = @$currencies[$visitorDetailsArray['siteCurrency']];
                 $visitorDetailsArray['serverTimestamp'] = $visitorDetailsArray['lastActionTimestamp'];