Changed checking for valid response from Google API.