Hi
Please find attached patch with fix.
> If last page attribute of collection is null, that means it is first page.> This check is applied for add new row and paste row as well.
Please review.
Thanks,Surinder Kumar