table-plugin: setting a row as table header does remove the row selection.

When setting a row as table header the cell selection was not removed. Setting a row as table header removes the selected row and replaces it by a new one. The problem was that the unselect function was called in the row removed instead of in the new row inserted. Updating the selection to the new row fixes the issue.