(a) Notwithstanding any law to the contrary, a person or entity does not have a cause of action against a local government or the officers, employees, or agents of a local government for any defect or malfunction in a software program intended to assist families of non-communicative persons register the non-communicative person with law enforcement in order to ensure the non-communicative person's safety, when the program was designed and distributed in good faith by the local government and without cost to the recipient local government or user of the program.
(b) No immunity conferred pursuant to subsection (a) attaches if the cause of action is based on gross negligence, willful misconduct, or bad faith.