How long can a water heater be without a water supply before it might be damaged?
As long as the water heater is completely full of water, indefinitely. The fact that there isn't fresh water flowing through it regularly isn't particularly important (and will likely even extend it's lifespan). If too much air enters the tank however, when the heater fires the lifespan will drop down into minutes or even seconds.