Fixed JS error when a pie series is present in an inverted chart. Closes #1736.