Fixed issue when having no data in stacking chart. Closes #2207