MB-8366: Fix nested table bug

When using jquery for table selector, we should only focus on top
level table and ignore nested ones.

Change-Id: I0190770e1d05a5a61bc1520383813edd253e8831