added exception handing for google chart