fix in shop.header.main.php sometimes ['location'] can be undefined