Fix context.stroke(context) error in Chrome