Method for operating a closed hot-water installation and apparatus to be used therewith