api fix

Fixes loading of variables, which can sometimes be null, also considers future changes of google api, where some things can be removed (it is better not to crash on api change, when the changed parts are unused by the app).