In tag functions, drop NULL attributes