Added checks for the information <div> to exist in the HTML before updating it.