Fixed crash on token JSON

If `expires_in` in the JSON was null, the code would crash.