Fix: `dt-api destroy()` when a child row was shown resulted in a JS error

See thread 23516 for more information