My mom brought home two chicks that had been hatched in her preschool (she is a preschool teacher). The first day home, I was watching them and happened to be facing the back-end of one. She started pooping, but instead of being a quick poop, like usual, it kept going. It ended up being a rubber band! Yuck! I'm glad I was right there, because the second it was out, the two of them started fighting over it. Not surprising, rubber bands look just like worms. I was able to snatch it from them. I have no idea how many cycles through it made.
In my experience, I have found baby chicks are quite resilient. While you want to keep them as healthy and happy as possible, sometimes they find a way to get into things they shouldn't. But often they will find a way to work it out.