Ilya,
This worked for me!
However, instead of commenting out line 9, i made it:
$app_name = get_option('blogname');
And instead of putting a string into line 13, I made it:
$client->setApplicationName($app_name);
That way, if the admin/client/site owner ever wants to change their site name, they won’t have to update the plugin too.