possible fix for setRows function

Currently setRows function works improperly when we set less rows than table already has.
This commit suggests a possible solution for that bug.
Merge pull request #94 from young-druid/patch-1

[Bug #8561] setRows is called with a smaller array than table currently has