fix for #1124, IE compatible.

Not sure if it is the best way to go, maybe it should test with another
context if isPointInPath is available, instead of a circle-shaped
polygon