Fixed JavaScript errors on using a pane with background color in polar charts. Closes #1542.