BZ-9944: wait until the highcharts thingy is ready before printing