More error checking when downloading JSON from OpenStates.