[Ref #1824] Fix TypeError if got empty rows from findAndCountAll() with group.