updated resource iterator so it wont throw error if it used with a collection that dose not return a cursor as its only has a few entities.