fixes issue with api call failing if 'pagination' == None
current code assumes that 'pagination' key wouldn't be returned in this case