We can use any and some without a noun if the meaning of the sentence is clear.
- I didn't eat any burger but Peter ate some. (Burger)
- James took lots of photos of the camel but Emma didn't take any. (Photos)
- I'm making some coffee. Do you want some? (Tea)
A noun can be repeated after some and any. But it is more natural NOT to repeat it.
- How much tea is there?
- There is not any.
- (There isn't any tea.)