this is the pressure relief device and needs replaced because it will drain the water tank. This could cause the elements to burn the water tank so I wouldn't say it is safe to use. You should check why it has operated (poor hose condition, poor showerhead condition, blockage in system) and fix that, then get a new spare part pressure relief device and have it replaced.
Paul M
November 2009