The important bit is "by depleting or spoiling the shared resource".
Plastic is not a "shared resource". It's not at risk of depletion or "spoilage". It's obviously the opposite problem.
I think the example with the sheep makes it perfectly clear what the concept is and isn't.