Fixed JS errors in polar chart when instanciated with no data. Closes #2093.