Close a table in variant autocomplete

There was no table closing tag in the variants autocomplete.
Fixes #5396