Don't break LuaUi::Element's invariant

Fixes #8720 (closed).

This is a regression from !3929 (merged).

Merge request reports

Loading