Fix issue with elementFromPoint when null

Fixes #434
Merge pull request #435 from arv/element-from-point-null

Fix issue with elementFromPoint when null