fixed assertion on stroking brush on non-raster layers