support for widgets and partials - remove null attributes