Fix an overflow in WebCursor.

I also added log message just in case a user has an issue with erroneous but unmalicious web cursor.

BUG=565023

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

Cr-Commit-Position: refs/heads/master@{#363136}
1 file changed