Trying to prevent this "morris not defined" error that sometimes happening when reloading live edit page
Now clearGraph and drawGraph are only called if Morris is defined.