Fix: now hasPoint() returns false for invalid point.

Fix: now hasPoint() returns false for invalid point.