Fixed a bug in Gecko {caretPositionFromPoint returns null}

It should never do that, but it seems it sometimes do when the page
hasn't fully loaded yet...