Misc minor fixes

* Fix empty table using messed up TD cell
* Fix resize of the table listener (since it needs to check for the
right table id it was missing it on table resize events - only on
add/remove items)