Deal with limit being undefined in API calls.