Add missing type annotations.
Don't error if the HTML table's parent is undefined.