Fix null crasher by checking the hit test's result.

BUG=359531

Review URL: https://codereview.chromium.org/225113002

git-svn-id: svn://svn.chromium.org/blink/trunk@170889 bbb929c8-8fbe-4397-9dbb-9b2b20218538