Revert "Fixes the removeEventListner is undefined when chart is rendered again and the previous chart contained no data."

This reverts commit c0726eaba2dfedb89f9fd6fc43f01d881d8f4220.
Fixes the removeEventListner is undefined when chart is rendered again and the previous chart contained no data.