bug #4198 Hovering over pie chart gives fatal JS error

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>