Avoid null pointer exception when access token does not exists