fixing "Cannot use object of type stdClass as array" error while running aintenance/loadtweets.php