Correctly hide duplicated elements in the module wizard (see #6826)