Fix bug where attempting to rendering an empty bar chart would crash