Do not replace a widget's name with an empty label (see #6501)