Use the same approach as Cycles and only render the volume objects if the shader is using any attribute. Fix #124061