Chinna code working fine, just add try-catch in your code,
var doc = app.activeDocument,
_tables = doc.stories.everyItem().tables.everyItem().getElements();
for(var i =0;i<_tables.length;i++)
{
var _rows = _tables[i].rows;
for(var j =0;j<_rows.length;j++)
{
var _cells = _rows[j].cells;
for(var k =0;k<_cells.length;k++)
{
//alert(_cells[k])
try{
if(_cells[k].contents == "")
{
_rows[j].remove();
}
}catch(e){}
}
}
}
Vandy