fix a couple of npe caused by user tapping on a chart which has no data