Prevent hide the pie chart when there is no data to display

Fixes #1.