don't create SmartList if we can use getContent directly
remove useless id attribute
set to null if empty tag specified