Fixed setting line dash for SVG

Conditionally handled setting the dash line setting on the context