Fixed issue with stacked areas containing no data. Closes #1661.