Only get the table headings from within the context of this.element

Fixes https://github.com/griddly-bear/griddly-bear/issues/74