Fixed #2951 causing JS error when updating a series from candlestick to OHLC.