Handle null line dashes for text stroke styles in ol.render.canvas.Immediate

This fixes the issue identified by @bentrm in #1710.