[addressess #71448954] This bug was appeared in this iteration. returning nil for collection object if its empty causes errors in existing pages when we try to do collection.each or collection.count etc, previously empty array is returned for collection objects.