Don’t crash if Google Play Services are not available
Fixed imports
Improved handling of broken JSON data. Also: correctly encode URIs.