[MWF] Fix TableLayoutPanel layout bug (#8907)

This fixes the TableLayoutPanel implementation to check for control names
as well as the the controls themselves in looking up the row and column
values.