Fixed some error conditions in the js file and hid divs when the politician information was not present