Is your water heater gas or electric? If you’re really concerned about having the anode in there, and you’ve got an electric, sometimes you can fish it out through the lower element port.
That said, leaving it inside isn’t going to hurt anything. It is no longer connected to the water heater so it’s no longer an anode. It will corrode slowly and dissolve into the water, but it won’t cause odor.