Fix empty attributes not being rendered