It already does this (relevant code here), reinforcing glass after its been repaired, and repairing at a ratio of 3 HP/unit.
It breaks the sprite if it starts getting reinforced, though, and it's pretty tedious to use since spraying it directly applies everything in the spray bottle.