Fixed issue caused by nested tables

If a cell contained another <table>, those <td>'s would also included in
the JSON which is incorrect behavior.