Fix handling of line dash state in ol.render.canvas.Immediate