The substance that should be added to the water in order for the bubbles to reappear is carbon dioxide.
In photosynthesis, aquatic plants use carbon dioxide, sunlight, and water to produce glucose and oxygen. The bubbles observed were likely oxygen being released as a byproduct of the photosynthesis process. Without sufficient carbon dioxide in the water, the plant would not be able to perform photosynthesis effectively, and the production of oxygen bubbles would decrease or cease.