One definition of zero is
2 the absence of a measurable quantity
However, this is a noun. As an adjective, zero means
not any or no
Based on this definition, it is correct to use it to describe a mass noun to say there is none of it.
I've noticed that using "zero" instead of "no" is usually used to emphasize the lack of whatever it's describing.